﻿<!doctype html>
<html>
  
  <head>
    <meta charset="UTF-8" />
    <title>金塔珠宝管理后台</title>
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="robots" content="noindex,nofollow">
     <script type="text/javascript" src="./Public/js/jquery-1.9.0.min.js"></script>
 <script type="text/javascript" src="./Public/js/functions.js"></script>
 <script type="text/javascript" src="./Public/js/jquery.form.js"></script><script type="text/javascript" src="./Public/js/asyncbox/asyncbox.js"></script>
 <!-- <link href="./Public/js/asyncbox/skins/default.css" rel="stylesheet" type="text/css" /> -->

<script type="text/javascript" src="App/Home/View/Public/layer/layer.js"></script>
<link href="../Public/css/admin_login.css" rel="stylesheet" type="text/css" />
    <style>#login_btn_wraper{ text-align: center; } #login_btn_wraper .tips_success{ color:#fff; } #login_btn_wraper .tips_error{ color:#DFC05D; } #login_btn_wraper button:focus{outline:none;}</style>
    <script>if (window.parent !== window.self) {
        document.write = '';
        window.parent.location.href = window.self.location.href;
        setTimeout(function() {
          document.body.innerHTML = '';
        },
        0);
      }</script>
  </head>
  
  <body>
    <div class="wrap">
      <h1>
        <a>金塔销售系统</a>
      </h1>
      <form method="post" action="" autoComplete="off" class="js-ajax-form">
        <div class="login">
          <ul>
            <li>
              <input class="input" id="js-admin-name" name="username"  type="text" placeholder="用户名" title="用户名" value="" data-msg-required="" /></li>
            <li>
              <input class="input" id="admin_pwd" type="password" name="pwd"  placeholder="密码" title="密码"  data-msg-required="" /></li>
   
            <li>
              <input class="input" type="text" id="verify_code" name="verify_code" placeholder="请输入验证码" /></li>
                       <li class="verifycode-wrapper">
     <img src="{:U('Admin/Public/verify_code')}"  title="看不清？单击此处刷新" onClick="this.src+='&rand='+Math.random();"  style="cursor: pointer; height:40px; vertical-align: middle;"/>
           </li>
          </ul>
          <div id="login_btn_wraper">
            <button type="submit" name="submit" id="submit" class="btn js-ajax-submit" data-loadingmsg="正在加载...">登录</button></div>
             <input type="hidden" name="op_type" id="op_type" value="1"/>
        </div>
      </form>
    </div>

    <script>; (function() {
        document.getElementById('js-admin-name').focus();
      })();</script>

      <script type="text/javascript">
        $(function(){
            $("#submit").click(function(){
                $("#op_type").val("1");
                if($("#js-admin-name").val()==''){
                    layer.msg("请输入用户名",{time:1000});
                    return false;
                }
                 if($("#admin_pwd").val()==''){
                    layer.msg("请输入密码",{time:1000});
                    return false;
                }
                 if($("#verify_code").val()==''){
                    layer.msg("请输入验证码信息",{time:1000});
                    return false;
                }
                commonAjaxSubmit();
                return false;
            });
          
        });
    </script>
  </body>

</html>